<?php
require_once PATH_NAME .'/utilities/dbquery.php';
require_once PATH_NAME .'/utilities/config.php';

class contractModel{
	public function __construct(){
		new dbConnect();
		mysql_query('SET CHARACTER SET utf8');		
	}

	public function showContractByCustomer( $customer_id ){
		$sql = "SELECT id, name FROM `tuser` WHERE publish = 1";
//		echo $sql;exit;
		return dbQuery::queryFetchObject($sql);
	}
	public function getPosts(){
		$sql = "SELECT id, name FROM `tposts` WHERE publish = 1";
//		echo $sql;exit;
		return dbQuery::queryFetchObject($sql);
	}
}
?>